package com.atguigu.spzx.cart.entity;

import com.atguigu.spzx.common.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel(description = "购物车实体类")
public class CartItemRedis extends BaseEntity {

   private static final long serialVersionUID = 1L;

   @ApiModelProperty(value = "用户id")
   private Long userId;

   @ApiModelProperty(value = "skuid")
   private Long skuId;

   @ApiModelProperty(value = "放入购物车时价格")
   private BigDecimal cartPrice;

   @ApiModelProperty(value = "数量")
   private Integer skuNum;

   @ApiModelProperty(value = "图片文件")
   private String imgUrl;

   @ApiModelProperty(value = "sku名称 (冗余)")
   private String skuName;

   @ApiModelProperty(value = "isChecked")
   private Integer isChecked;

}
